package com.hxk.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hxk.mapper.UserMapper;
import com.hxk.pojo.User;
import com.hxk.service.UserService;

@Service
public class UserServiceImpl implements UserService {
	
	@Autowired
	private UserMapper userMapper;
	
	@Override
	public int addUser(User user) {
		return this.userMapper.addUser(user);
	}

	@Override
	public int delUser(int id) {
		return this.userMapper.delUser(id);
	}

	@Override
	public int updUser(User user) {
		return this.userMapper.updUser(user);
	}

	@Override
	public User getUserById(int id) {
		return this.userMapper.getUserById(id);
	}

	@Override
	public List<User> listUsers(User user) {
		return this.userMapper.listUsers(user);
	}

}
